﻿//using System;
//using System.Collections.Generic;
//using System.Net;
//using System.Text;

//namespace Marmat.Common.Http
//{
//    public class HttpMethodReturnInterceptor
//    {
//        public object Invocation(HttpWebResponse response, Type returnType)
//        {
//            string resultstring;
//            using (System.IO.Stream resStream = response.GetResponseStream())
//            {
//                Encoding encoding = new UTF8Encoding();
//                System.IO.StreamReader reader = new System.IO.StreamReader(resStream, encoding);
//                resultstring = reader.ReadToEnd();
//                reader.Close();
//                resStream.Close();
//            }
//            //return Newtonsoft.Json.JsonConvert.DeserializeObject(resultstring, returnType);

//        }
//    }
//}
